#ifndef HISTORYMANAGER_H
#define HISTORYMANAGER_H

#include <QObject>
#include <QJsonObject>
#include <QJsonArray>

class HistoryManager : public QObject {
    Q_OBJECT
public:
    explicit HistoryManager(QObject *parent = nullptr);
    ~HistoryManager();
    
    bool saveHistory(const QJsonObject &record);
    QJsonArray loadHistory(int limit = 100);
    bool clearHistory();
};

#endif // HISTORYMANAGER_H